/**
 * 
 */
package com.zte.claa.inficombo.csa.app.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * CMCC NBIOT OneNet API 配置项
 * 
 * @author 0283000115
 * 
	csa.cmcc.onenet.api.protocol=http
	csa.cmcc.onenet.api.domainname=api.heclouds.com
	csa.cmcc.onenet.api.masterapikey= 
	csa.cmcc.onenet.api.objectid=3200
	csa.cmcc.onenet.api.objectinstid=1
	csa.cmcc.onenet.api.resid=5750
 */

@Component  
@ConfigurationProperties(prefix="csa.cmcc.onenet.api") 
public class CmccOnenetApiPara {
	// API接口协议  --->废弃，改成从系统参数中读取，避免多头配置.
	private String protocol = "http";
	// CMCC ONENET API SVR --->废弃，改成从系统参数中读取，避免多头配置.
	private String domainname = "api.heclouds.com";
	// API MasterKey. --->废弃，改成从系统参数中读取，避免多头配置. 
	private String masterapikey = "";
	// ObjectId.
	private int objectid = 3200;
	// ObjectInstId
	private int objectinstid = 1;
	// ResId
	private int resid = 5750;
	
	public CmccOnenetApiPara(){
		
	}

	public String getProtocol() {
		return protocol;
	}

	public void setProtocol(String protocol) {
		this.protocol = protocol;
	}

	public String getDomainname() {
		return domainname;
	}

	public void setDomainname(String domainname) {
		this.domainname = domainname;
	}

	public String getMasterapikey() {
		return masterapikey;
	}

	public void setMasterapikey(String masterapikey) {
		this.masterapikey = masterapikey;
	}

	public int getObjectid() {
		return objectid;
	}

	public void setObjectid(int objectid) {
		this.objectid = objectid;
	}

	public int getObjectinstid() {
		return objectinstid;
	}

	public void setObjectinstid(int objectinstid) {
		this.objectinstid = objectinstid;
	}

	public int getResid() {
		return resid;
	}

	public void setResid(int resid) {
		this.resid = resid;
	}
	
}
